import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import moment from 'moment'
import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'
import ip2 from "./components/ip2";
import serverName from "./components/test";
Vue.component('icon',Icon)
Vue.prototype.$moment = moment
Vue.prototype.$ip2 = ip2
Vue.prototype.$serverName = serverName
import {exportWord, base64DataURLToArrayBuffer, toDataURL} from './components/exportFunction'
import {handleHeader, rowStyle,cellStyle, toolStyle, dataPage, fixTwo} from './components/header'
Vue.prototype.$handleheader = handleHeader
Vue.prototype.$rowstyle = rowStyle
Vue.prototype.$cellstyle = cellStyle
Vue.prototype.$toolstyle= toolStyle
Vue.prototype.$dataPage= dataPage
Vue.prototype.$fixTwo= fixTwo
Vue.prototype.$exportWord= exportWord
Vue.prototype.$base64DataURLToArrayBuffer= base64DataURLToArrayBuffer
Vue.prototype.$toDataURL= toDataURL
// Vue.use(ElementUI)
//全局设为size=small
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });
Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
